package com.elasticsearch.demo.repository;

import com.elasticsearch.demo.model.entity.User;
import org.springframework.data.repository.CrudRepository;

/**
 * @author lanhai
 */
public interface UserRepository extends CrudRepository<User,Long> {

    User findByName(String userName);
}
